package com.bigtotoro.shuiyincamera.util;

/**
 * auther: Administrator.
 * Date: 2019/3/25.
 */

public class ModelSingle {
    private Object model;
    private Object mode2;
    private Object mode3;
    private Object systemMode;
    private Object HomeArea;

    public Object getHomeArea() {
        return HomeArea;
    }

    public void setHomeArea(Object homeArea) {
        HomeArea = homeArea;
    }

    public static void setInstance(ModelSingle instance) {
        ModelSingle.instance = instance;
    }

    private static ModelSingle instance = null;
    public synchronized static ModelSingle getInstance(){
        if(instance == null){
            instance = new ModelSingle();
        }
        return instance;
    }

    public void clear(){
        model = null;
    }

    public Object getModel() {
        return model;
    }

    public void setModel(Object model) {
        this.model = model;
    }

    public Object getMode2() {
        return mode2;
    }

    public void setMode2(Object mode2) {
        this.mode2 = mode2;
    }

    public Object getMode3() {
        return mode3;
    }

    public void setMode3(Object mode3) {
        this.mode3 = mode3;
    }

    public Object getSystemMode() {
        return systemMode;
    }

    public void setSystemMode(Object systemMode) {
        this.systemMode = systemMode;
    }
}
